﻿using SqlSugar;

namespace SqlSugarHelper
{
    public interface ISqlClientFactory
    {
        SqlSugarClient Current { get; }
        SqlSugarProvider GetProvider(string name);
        bool IsTran { get; }
        void BeginTran();
        void CommitTran(SqlSugarClient source);

        void RollbackTran(SqlSugarClient source);
        ISugarQueryable<T> GetQueryable<T>(string name);
    }
}